package com.hysf.project1;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class PersonBizImpl implements PersonBiz {

	private final PersonDao personDao;
	
	@Override
	public List<Person> findAll() {
		return personDao.findAll();
	}
	
	@Override
	public Person addPerson(Person person) {
//		int i = 1/0;
		return personDao.addPerson(person);
	}
}
